import { RouterProvider} from "react-router-dom"
import { router } from "./router"
import { ConfigProvider } from "antd"
import { initMessage } from "./utils/message";


function App() {
  const messageContextHolder = initMessage(); // 初始化 messageApi  
  return (
    <ConfigProvider
      theme={{
        token: {
          colorPrimary: '#1890ff', // 主色
          borderRadius: 4,       // 圆角
        },
        components: {
          Button: {
            colorPrimary: '#1eee29ff', // 按钮主色
          },
        },
      }}
  >
    {messageContextHolder}
    <RouterProvider router={router}></RouterProvider>  
  </ConfigProvider>

  )
}

export default App
